// const { defineConfig } = require("@vue/cli-service");
// module.exports = defineConfig({
// 	transpileDependencies: true,
// 	chainWebpack: (config) => {
// 		config.plugin("define").tap((definitions) => {
// 			Object.assign(definitions[0]["process.env"], {
// 				NODE_HOST: '"http://www.atwx.xyz:8030"',
// 			});
// 			return definitions;
// 		});
// 	},
// });

module.exports = {
	devServer: {
		proxy: {
			"/api": {
				target: "http://www.atwx.xyz:8030", //这里填入你要请求的接口的前缀
				ws: true, //代理websocked
				changeOrigin: true, //虚拟的站点需要更管origin
				secure: true, //是否https接口
				pathRewrite: {
					"^/api": "", //重写路径
				},
			},
			"/dowloadapi": {
				target: "http://www.atwx.xyz", //这里填入你要请求的接口的前缀
				ws: true, //代理websocked
				changeOrigin: true, //虚拟的站点需要更管origin
				secure: true, //是否https接口
				pathRewrite: {
					"^/dowloadapi": "", //重写路径
				},
			},
		},
	},
};
